declare i32 @printf(i8*, ...)
declare i32 @puts(i8*)
@puti_fmt = constant [ 4 x i8 ] c"%d\0A\00"
define void @puti(i32 %x) {
	call i32 (i8*, ...)* @printf(i8* getelementptr ([4 x i8]* @puti_fmt, i32 0, i32 0), i32 %x)
	ret void
}

@putf_fmt = constant [ 4 x i8 ] c"%f\0A\00"
define void @putf(double %x) {
	call i32 (i8*, ...)* @printf(i8* getelementptr ([4 x i8]* @putf_fmt, i32 0, i32 0), double %x)
	ret void
}

define i32 @main() {
	%r1 = add i32 0,0
	%r2 = add i32 1,0

; if-start
    %r3 = icmp ult i32 %r2,%r1
	br i1 %r3, label %IF_TRUE, label %IF_END
IF_TRUE:

    %r4 = add i32 10,0
	call void @puti(i32 %r4)

    br label %IF_END
IF_END:

    %r6 = add i32 15,0
	call void @puti(i32 %r6)

}
